package com.turing.data.scripts.contract.transfer

import com.turing.data.vo.out.review.DependParamsVO
import com.turing.data.vo.out.review.TaskElementVO


class IfShareTransfer_30188_10_transfer {

    static List< TaskElementVO.DrawResultVO > doConvert(List< TaskElementVO.DrawResultVO > resultVOs, DependParamsVO dependParams){

        for( drawResultVO in resultVOs ) {
//                def childTaskSn = drawResultVO.childTaskSn
//                if(null == childTaskSn || childTaskSn == ""){
//                    continue
//                }
            String modelValue = drawResultVO.businessValue
            String text= drawResultVO.text
            if(text=="是"||modelValue=="是" ){
				return resultVOs
			}

            String REGEX_SHARE_TRANSFER = /.*份额转让.*/
            String REGEX_SHARE_NOT_TRANSFER = /.*不.*份额转让.*/
            if (modelValue =~ REGEX_SHARE_NOT_TRANSFER) {
                drawResultVO.businessValue = "否"
                drawResultVO.type = 1
            }else if (modelValue =~ REGEX_SHARE_TRANSFER) {
                drawResultVO.businessValue = "是"
                drawResultVO.type = 1
            }else{
                drawResultVO.businessValue = "否"
                drawResultVO.type = 1
            }
        }

        return resultVOs
    }

}
